HTMLify
style.css
Views: 18 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | *{ margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #10131c; } .navigation{ position: relative; width: 70px; height: 70px; background: #212532; border-radius: 10px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: .5s; transition-delay: .8s; } .navigation.active{ width: 200px; height: 200px; transition-delay: 0s; } .navigation span{ position: absolute; width: 7px; height: 7px; display: flex; justify-content: center; align-items: center; background: #fff; border-radius: 50%; transform: translate(calc(12px * var(--x)), calc(12px * var(--y))); transition: transform .5s, width .5s, height .5s, background .5s; transition-delay: calc(.1s * var(--i)); } .navigation.active span{ width: 45px; height: 45px; background: #333849; transform: translate(calc(60px * var(--x)), calc(60px * var(--y))); } .navigation span ion-icon{ transition: .5s; font-size: 0em; } .navigation.active span ion-icon{ font-size: 1.35em; color: #fff; } .navigation.active span:hover ion-icon{ color: #2dfc52; filter: drop-shadow(0 0 2px #2dfc52) drop-shadow(0 0 5px #2dfc52) drop-shadow(0 0 15px #2dfc52); } |